
<?php
class Catalog_Form_CategorySelect extends Zend_Form
{
    public function init()
    {
        $this->setMethod('post');

        $element = new Zend_Form_Element_Select('selected_category_id');
        $a = Catalog_Model_Category::getCategorySelectData();
        $element->addMultiOptions($a);
        $element->getView()->setEscape('trim');
        $this->addElement($element);

        $this->addElement('submit', 'submit', array(
            'label'    => 'ok',
        ));

    }
}
